﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Adatkezelo.Classes;

namespace NEMProjectWebApp.Pages {
    public partial class News : System.Web.UI.Page {
        Login_Kezeles login = new Login_Kezeles();
        protected void Page_Load(object sender, EventArgs e) {
            int[] t = {1,3};
            string tmp = login.BelepesiJogkorEll(Session, t);
            if (tmp.Length > 0)
                Response.Redirect(tmp);
        }
        SQLDataManipulation sql = new SQLDataManipulation();
        protected void uploadNewsButton_Click(object sender, EventArgs e) {
            sql.setDatabyCommand("insert into NEWS (Entry) Values ('" + entryTextBox.Text + "')");
        }
    }
}